package com.yserp.project.erp.store.instorelog.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yserp.framework.aspectj.lang.annotation.Excel;
import com.yserp.framework.web.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 入库日志对象 erp_stock_in_log
 *
 * @author yserp
 * @date 2022-07-08
 */
@Data
public class StockInLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 入库类型
     */
    @Excel(name = "入库类型")
    private String inType;

    /**
     * 批次号
     */
    @Excel(name = "批次号")
    private String batchNo;

    /**
     * 订单主键
     */
    @Excel(name = "订单主键")
    private Long orderId;

    /**
     * 订单号
     */
    @Excel(name = "订单号")
    private String orderCode;

    /**
     * 商品主键
     */
    @Excel(name = "商品主键")
    private Long goodId;

    /**
     * 商品编号
     */
    @Excel(name = "商品编号")
    private String goodCode;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String goodName;
    /**
     * 商品名称
     */
    @Excel(name = "商品单位")
    private String goodUnit;

    /**
     * 商品单位
     */
    @Excel(name = "商品单位描述")
    private String goodUnitDesc;

    /**
     * 入库数量
     */
    @Excel(name = "入库数量")
    private BigDecimal inNum;

    /**
     * 包装单位
     */
    @Excel(name = "包装单位")
    private String packageUnit;

    /**
     * 包装数量
     */
    @Excel(name = "包装数量")
    private Long packageNumber;

    /**
     * 仓库ID
     */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    /**
     * 仓库名称
     */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /**
     * 库区ID
     */
    @Excel(name = "库区ID")
    private Long reservoirId;

    /**
     * 库区名称
     */
    @Excel(name = "库区名称")
    private String reservoirName;

    /**
     * 入库时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inTime;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;


}
